# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-pyaudio
pkgver=0.2.11
pkgrel=3
pkgdesc="Bindings for PortAudio v19, the cross-platform audio input/output stream library"
url="https://people.csail.mit.edu/hubert/pyaudio/"
arch="all"
license="MIT"
depends="python3"
makedepends="py3-setuptools python3-dev portaudio-dev"
source="https://pypi.python.org/packages/source/P/PyAudio/PyAudio-$pkgver.tar.gz
	fix_for_python_3.10.patch
	"
options="!check" # No tests
builddir="$srcdir/PyAudio-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
64db5542ee60837c9b07677e146fc7b060ff47c8b1c04cbb575bce79dd3ed4776c201e169ff2860f27dbe9e00a77046ba0cb925b55f7c546f8de46c6df68954e  PyAudio-0.2.11.tar.gz
092d30d92fe8f7395bbf6264d9cc5fdb9f0b7eb9137f8afddf1cb2ebeffe1434b934426c32f309d5e4e6b50295f50d2a4c931590acd22fd51cfb1028ca3d6c93  fix_for_python_3.10.patch
"
